<template>
  <div>
    <el-tabs type="border-card">
      <el-tab-pane label="审批轨迹">
        <el-table :data="tableData" border>
          <el-table-column type="index" :index="indexMethod" label="序号">
          </el-table-column>
          <el-table-column prop="name" label="时间" sortable></el-table-column>
          <el-table-column
            prop="address"
            label="操作人"
            sortable
          ></el-table-column>
          <el-table-column
            prop="seller"
            label="审批动作"
            sortable
          ></el-table-column>
          <el-table-column
            prop="sign"
            label="审批结果"
            sortable
          ></el-table-column>
          <el-table-column
            prop="amount_1"
            label="下一步审批人"
            sortable
          ></el-table-column>
          <el-table-column
            prop="amount_2"
            label="审批意见"
            sortable
          ></el-table-column> </el-table
      ></el-tab-pane>
      <el-tab-pane label="流程图">
        <el-steps :active="1">
          <el-step title="步骤 1" icon="el-icon-edit"></el-step>
          <el-step title="步骤 2" icon="el-icon-upload"></el-step>
          <el-step title="步骤 3" icon="el-icon-picture"></el-step>
        </el-steps>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
export default {
  //审批历史弹框
  name: "historicalApproval",
  props: ["rowaa"],
  data() {
    return {
      formData: "",
      tableData: []
    };
  },
  created() {
    this.getData();
  },
  watch: {
    rowaa: "getData"
  },
  methods: {
    getData() {
      //从后台获取数据逻辑 model.CacheModel.get('api/' + this.rowaa + '.json')
      //通过this.rowaa就可以获取传过来的值
      this.formData = 333;
    }
  }
};
</script>
